package ObjectOriented;

/**
 * @Description:子类的复习
 * @Author:AMark
 * @Date: 10/17/2023
 */
public class SubClass extends SuperClass{
    //攻击伤害值
    private int Attack;
    //防御力
    private int defend;
    //移动速度
    private double speed;
    public SubClass() {
        super();
        this.Attack = 0;
        this.defend = 0;
        this.speed = 0.0;
    }
    public SubClass(String name, int ID, char sex, int attack, int defend, double speed) {
        super(ID,name,sex);
        this.speed = speed;
        this.Attack = attack;
        this.defend = defend;
    }
}
